package com.hsxshop.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by wangchongya on 17/7/12.
 */
@Entity
@Table(name = "demand_info")
public class Demand {

    private int id;
    private String serialNum;
    private long userId;
    private String shipCode;
    private String phone;
    private String title;
    private int focusNumber;
    private int seafoodId;
    private String seafoodName;
    private long totalWeight;
    private String arrivalTime;
    private long arrivalDockId;
    private String arrivalDockName;
    private long townId;
    private String townName;
    private long provinceId;
    private String provinceName;
    private String imageIds;
    private String imageUrls;
    private String createTime;
    private String remark;
    private int statusId;
    private int tag;
    //    private String upStringTime;
    private String sortTime;
    private int tradeMode;
    private String timingTime;
    private Integer realWeight;
    private int storageMode;
    private int isCreateOrder;
    private String origin;
    private long storageTemp;
    private String packingDesc;
    private long businessId;
    private long businessFrom;
    private int userDelete;
    private int isgenerate;
    private int isgenerateorder;


//    id,shipCode,phone,title,remark,sortTime,statusId

    public Demand() {
    }

    public Demand(int id, String shipCode, String phone, String title, String remark, String sortTime, int statusId) {
        this.id = id;
        this.shipCode = shipCode;
        this.phone = phone;
        this.title = title;
        this.remark = remark;
        this.sortTime = sortTime;
        this.statusId = statusId;
    }
//    private User user;

    @Id
    @GeneratedValue(generator = "increment")
    @GenericGenerator(name = "increment", strategy = "increment")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getShipCode() {
        return shipCode;
    }

    public void setShipCode(String shipCode) {
        this.shipCode = shipCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getFocusNumber() {
        return focusNumber;
    }

    public void setFocusNumber(int focusNumber) {
        this.focusNumber = focusNumber;
    }

    public int getSeafoodId() {
        return seafoodId;
    }

    public void setSeafoodId(int seafoodId) {
        this.seafoodId = seafoodId;
    }

    public String getSeafoodName() {
        return seafoodName;
    }

    public void setSeafoodName(String seafoodName) {
        this.seafoodName = seafoodName;
    }

    public long getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(long totalWeight) {
        this.totalWeight = totalWeight;
    }

    public String getArrivalTime() {
        return arrivalTime;
    }

    public void setArrivalTime(String arrivalTime) {
        this.arrivalTime = arrivalTime;
    }

    public long getArrivalDockId() {
        return arrivalDockId;
    }

    public void setArrivalDockId(long arrivalDockId) {
        this.arrivalDockId = arrivalDockId;
    }

    public String getArrivalDockName() {
        return arrivalDockName;
    }

    public void setArrivalDockName(String arrivalDockName) {
        this.arrivalDockName = arrivalDockName;
    }

    public long getTownId() {
        return townId;
    }

    public void setTownId(long townId) {
        this.townId = townId;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(long provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getImageIds() {
        return imageIds;
    }

    public void setImageIds(String imageIds) {
        this.imageIds = imageIds;
    }

    public String getImageUrls() {
        return imageUrls;
    }

    public void setImageUrls(String imageUrls) {
        this.imageUrls = imageUrls;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatusId() {
        return statusId;
    }

    public void setStatusId(int statusId) {
        this.statusId = statusId;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

//    public String getUpStringTime() {
//        return upStringTime;
//    }
//
//    public void setUpStringTime(String upStringTime) {
//        this.upStringTime = upStringTime;
//    }

    public String getSortTime() {
        return sortTime;
    }

    public void setSortTime(String sortTime) {
        this.sortTime = sortTime;
    }

    public int getTradeMode() {
        return tradeMode;
    }

    public void setTradeMode(int tradeMode) {
        this.tradeMode = tradeMode;
    }

    public String getTimingTime() {
        return timingTime;
    }

    public void setTimingTime(String timingTime) {
        this.timingTime = timingTime;
    }

    public Integer getRealWeight() {
        return realWeight;
    }

    public void setRealWeight(Integer realWeight) {
        this.realWeight = realWeight == null ? 0 : realWeight;
    }

    public int getStorageMode() {
        return storageMode;
    }

    public void setStorageMode(int storageMode) {
        this.storageMode = storageMode;
    }

    public int getIsCreateOrder() {
        return isCreateOrder;
    }

    public void setIsCreateOrder(int isCreateOrder) {
        this.isCreateOrder = isCreateOrder;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public long getStorageTemp() {
        return storageTemp;
    }

    public void setStorageTemp(long storageTemp) {
        this.storageTemp = storageTemp;
    }

    public String getPackingDesc() {
        return packingDesc;
    }

    public void setPackingDesc(String packingDesc) {
        this.packingDesc = packingDesc;
    }

    public long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(long businessId) {
        this.businessId = businessId;
    }

    public long getBusinessFrom() {
        return businessFrom;
    }

    public void setBusinessFrom(long businessFrom) {
        this.businessFrom = businessFrom;
    }

    public int getUserDelete() {
        return userDelete;
    }

    public void setUserDelete(int userDelete) {
        this.userDelete = userDelete;
    }

    public void setIsgenerate(int isgenerate) {
        this.isgenerate = isgenerate;
    }

    public int getIsgenerate() {
        return isgenerate;
    }

    public int getIsgenerateorder() {
        return isgenerateorder;
    }

    public void setIsgenerateorder(int isgenerateorder) {
        this.isgenerateorder = isgenerateorder;
    }

//    @OneToOne(targetEntity = User.class)
//    @JoinColumn(name = "phone",referencedColumnName = "phone")
//    public User getUser() {
//        return user;
//    }
//    public void setUser(User user) {
//        this.user = user;
//    }
}

